<!DOCTYPE html>
<html lang="en">

  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <!-- Title and other stuffs -->
    <title>
      Snail测试平台
    </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="">
    {% load static %}
    <link rel="icon" href="{% static "intest/images/favicon.ico" %}" type="image/x-icon" />
    <!-- Bootstrap -->
    <link href="{% static "assets/bootstrap-3.3.7-dist/css/bootstrap.min.css" %}" rel="stylesheet">
    <!--link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"-->
    <link href="{% static "new_template/vendors/font-awesome/css/font-awesome.min.css" %}" rel="stylesheet">
    <!-- Custom Theme Style -->
    <link href="{% static "new_template/build/css/custom.min.css" %}" rel="stylesheet">
    {% block css %}{% endblock %}
    <script src="{% static "assets/js/jquery.min.js" %}">
    </script>
    <!-- Bootstrap -->
    <script src="{% static "assets/bootstrap-3.3.7-dist/js/bootstrap.min.js" %}">
    </script>
  </head>

  <body class="nav-md">
    <div class="container body">
      <div class="main_container">
        <!-- Main content starts -->
        <div class="content">
          <!-- Sidebar -->
          <div class="col-md-3 left_col">
            <div class="left_col scroll-view">
              <div class="navbar nav_title" style="border: 0;">
                <a href="/index" class="site_title">
                  <i class="fa fa-cloud">
                  </i>
                  <span>
                      Intest测试平台
                  </span>
                </a>
              </div>
              <div class="clearfix">
              </div>
              <br>
              <!-- sidebar menu -->
              <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
                <div class="menu_section active">
                  <h3>
                    任务调度
                  </h3>
                  <ul class="nav side-menu" style="">
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        接口自动化测试
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="current-page">
                          <a href="/intest/btApi">
                            生产环境
                          </a>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        UI自动化测试
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="current-page">
                          <a href="/intest/uiTest/">
                            生产环境
                          </a>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        回归测试
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="current-page">
                          <a href="/intest/regression_list">
                            生产环境
                          </a>
                        </li>
                      </ul>
                    </li>
                  </ul>
                  <br>
                  <h3>
                    辅助工具
                  </h3>
                  <ul class="nav side-menu" style="">
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        一键注册实名
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="">
                          <a href="/intest/registrationIdentity">
                            测试环境
                          </a>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        一键全部清除
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="">
                          <a href="/intest/rdClearUserInfo">
                            测试环境
                          </a>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        一键全部授信
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="">
                          <a href="/intest/rdAllAuth">
                            测试环境
                          </a>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        单个清除授信项(调试中)
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="">
                          <a href="/intest/rdOneClearCredit">
                            测试环境
                          </a>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        单个授信项授信(调试中)
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="">
                          <a href="/intest/rdOneCredit">
                            测试环境
                          </a>
                        </li>
                      </ul>
                    </li>
                  </ul>
                  <br>
                  <h3>
                    ui辅助工具
                  </h3>
                  <ul class="nav side-menu" style="">
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        日志
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="">
                          <a href="/intest/anyproxyLog">
                            anyproxy日志
                          </a>
                        </li>
                        <li class="">
                          <a href="#">
                            appium日志(开发中)
                          </a>
                        </li>
                        <li class="">
                          <a href="/intest/regressionLog">
                            回归日志
                          </a>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        报告
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="">
                          <a href="/intest/report">
                            测试报告
                          </a>
                        </li>
                      </ul>
                    </li>
                    <li>
                      <a>
                        <i class="fa fa-home">
                        </i>
                        设备
                        <span class="fa fa-chevron-down">
                        </span>
                      </a>
                      <ul class="nav child_menu">
                        <li class="">
                          <a href="/intest/device">
                            设备管理
                          </a>
                        </li>
                      </ul>
                    </li>
                  </ul>
                  <br>
                </div>
              </div>
            </div>
          </div>
          <div class="top_nav">
            <div class="nav_menu">
              <nav>
                <div class="nav toggle">
                  <a id="menu_toggle">
                    <i class="fa fa-bars">
                    </i>
                  </a>
                </div>
                <div>
                  <span class="nav toggle" style="width: 400px;font-size: 20px">
                    当前版本：V1.2
                    <a style="color: #00CC33;font-size: 12px;" href="/intest/index">
                      首页
                    </a>
                    <a style="color: #00CC33;font-size: 12px;" href="/index">
                      其它平台
                    </a>
                  </span>
                </div>
                <ul class="nav navbar-nav navbar-right">
                  <li class="">
                    <a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown"
                    aria-expanded="false">
                      {{ username }}
                      <span class=" fa fa-angle-down">
                      </span>
                    </a>
                    <ul class="dropdown-menu dropdown-usermenu pull-right">
                      <li>
{#                        <a href="javascript:void(0);" onclick="modPwd();">#}
                        <a href="javascript:void(0);" onclick="">
                          修改密码
                        </a>
                      </li>
                      <li>
                        <a href="/log_out">
                          <i class="fa fa-sign-out pull-right">
                          </i>
                          退出登录
                        </a>
                      </li>
                    </ul>
                  </li>
                </ul>
              </nav>
            </div>
          </div>
          <script type="text/javascript">
            function modPwd() {
              var pwd = prompt("请输入新密码", "123456"); //将输入的内容赋给变量 name ，
              //这里需要注意的是，prompt有两个参数，前面是提示的话，后面是当对话框出来后，在对话框里的默认值
              if (pwd) {
                var againPwd = prompt("请再次输入新密码", "");
                if (pwd == againPwd) {
                  //如果返回的有内容
                  var modpwd = $.ajax({
                    url: "/user/updatePwd?pwd=" + pwd,
                    async: false
                  });
                  if (JSON.parse(modpwd.responseText)["code"] == 10000) {
                    location.href = '/log_out';
                  } else {
                    alert("修改失败，请重试！");
                  }
                } else {
                  alert("两次输入的密码不一致！");
                }

              } else {
                alert("请改失败，请输入新密码！");
              }
            }


          </script>
          <!-- Sidebar ends -->
          <div class="right_col" role="main" style="min-height: 1657px;">
            <div class="">
              <div class="page-title">
                <div class="title_left">
                  <div class="col-xs-12 form-group pull-right top_search">
                    {% block title %}{% endblock %}
                  </div>
                </div>
              </div>
              <div class="clearfix">
              </div>
              {% block content %}{% endblock %}
              <!-- 使用blok来空出子页面需要填充的内容 -->
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
  <footer>
    <div align="center">
      <p class="copy" align="center">
        Copyright wiggins&copy; 2017 |
        <a href="https://www.wealth365.com.cn/" target="_blank">
          Alpaca
        </a>
      </p>
    </div>
    <div class="clearfix">
    </div>
  </footer>
  <!-- Custom Theme Scripts -->
  <script src="{% static "intest/js/custom.js" %}"></script>
  {% block js %}{% endblock %}
</html>